package com.platform.study.patterns.creational.simple_factory;

import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-11-20
 * Time: 下午4:46
 * To change this template use File | Settings | File Templates.
 */
public class OperationDiv extends Operation {

    /**
     * 除法
     *
     * @return 计算结果
     */
    @Override
    public String operationResult() {
        BigDecimal bigA = new BigDecimal(numberA);
        BigDecimal bigB = new BigDecimal(numberB);
        return bigA.divide(bigB).toString();
    }

}
